260 IF LEN(CR$(I)) >30 THEN FLASH : HOME : PRINT : PRINT "[ LESS THAN 30 CHAR. PLEASE ]": NORMAL : PRINT : GOTO 250
270 NEXT I
280 VTAB 5: HTAB 12: PRINT "CRITERIA WEIGHTING "
290 FOR I = 1 TO NW: HOME
300 PRINT : PRINT "CRITERIA # ";I;" :": PRINT : PRINT " ";CR$(I): PRINT : PRINT "WHAT VALUE DO YOU PLACE ON THIS": PRINT "CRITERIA IN RELATION TO THE OTHERS -": PRINT
310 INPUT W$:CR(I) = VAL(W$): IF CR(I) < = 0 THEN HOME : PRINT : FLASH : PRINT "[ VALUE MUST BE GREATER THAN ZERO ]": NORMAL : PRINT : GOTO 300
320 NEXT I
340 TW = 0: FOR I = 1 TO NW:TW = TW +CR(I): NEXT I
350 FOR I = 1 TO NW:CR(I) = (10 *CR(I))/TW: NEXT I
360 VTAB 5: HTAB 12: PRINT "CHOICE JUDGEMENT "
370 FOR I = 1 TO NW: HOME
380 FOR J = 1 TO NC: HOME
390 PRINT : PRINT "FOR CRITERIA # ";I;" :": PRINT " ";CR$(I): PRINT : PRINT "JUDGE CHOICE # ";J;" :": PRINT " ";CH$(J): PRINT : PRINT "IN RELATION TO THE OTHER CHOICES -": PRINT
400 INPUT W$:CH(J) = VAL(W$): IF CH(J) < = 0 THEN HOME : PRINT : FLASH : PRINT "[ VALUE MUST BE GREATER THAN ZERO ]": NORMAL : PRINT : GOTO 390
410 NEXT J
420 TV = 0: FOR K = 1 TO NC:TV = TV +CH(K): NEXT K
430 FOR K = 1 TO NC:CH(K) = (10 *CH(K) *CR(I))/TV: NEXT K
440 FOR K = 1 TO NC:CV(K) = CV(K) +CH(K): NEXT K
450 NEXT I
460 FOR I = 1 TO NW:CV(I) = CV(I)/NW: NEXT I
470 MV = 0:MN = 0: FOR I = 1 TO NW: IF CV(I) >MV THEN MV = CV(I):MN = I
480 NEXT
490 FOR I = 1 TO NW:CV(I) = (100 *CV(I))/MV: NEXT I
500 VTAB 5: PRINT " ": PRINT : PRINT : HOME : PRINT "DO YOU WANT A HARD-COPY OF THE RESULTS": INPUT R$:R$ = LEFT$(R$,1)
550 PRINT "GIVEN THE FOLLOWING CHOICES:": PRINT : PRINT
560 FOR I = 1 TO NC: PRINT " ";I;" - ";CH$(I): IF R$ < >"N" THEN PRINT
565 NEXT I: PRINT
570 IF R$ = "N" THEN GOSUB 60
580 PRINT "AND THE FOLLOWING CRITERIA FOR JUDGING THEM:": PRINT : PRINT
590 FOR I = 1 TO NW: PRINT " ";I;" - ";CR$(I): IF R$ < >"N" THEN PRINT
595 NEXT I: PRINT
600 IF R$ = "N" THEN GOSUB 60
610 PRINT : PRINT "YOUR BEST CHOICE IS :": PRINT : PRINT " ";MN;" - ";CH$(MN): PRINT : PRINT
620 PRINT "THE FINAL SCORES ARE:": PRINT
630 FOR I = 1 TO NC: PRINT " ";I;" - "; FN R(CV(I)): IF R$ < >"N" THEN PRINT
635 NEXT I: PRINT
640 PRINT "GOOD-BYE"
650 IF R$ = "Y" THEN PRINT CHR$(4);"PR#0"
700 END
10000 REM INSTRUCTIONS
10010 HOME : PRINT " THIS PROGRAM WILL HELP YOU MAKE": PRINT "DECISIONS. IT IS DESIGNED TO ALLOW YOU": PRINT "TO JUDGE UP TO TEN CHOICES BY AS MANY": PRINT "AS TEN CRITERIA (THESE VALUES MAY BE": PRINT "CHANGED TO SUIT YOUR NEEDS)."
10020 PRINT : PRINT " CHOICE IN THIS PROGRAM IS ONE OF THE": PRINT "SEVERAL OPTIONS YOU ARE DECIDING": PRINT "BETWEEN. FOR EXAMPLE: TYPE OF CAR -": PRINT "CHEVY, FORD, TOYOTA, DATSUN."
10030 PRINT : PRINT " CRITERIA IS ONE OF THE THINGS YOU ARE": PRINT "GOING TO BASE THE DECISION UPON": PRINT "FOR EXAMPLE: COST, STYLE, DURABILITY."
10040 GOSUB 60
10050 PRINT " WEIGHT VALUE IS A NUMBER WHICH": PRINT "INDICATES THE RELATIVE VALUE THAT YOU": PRINT "PLACE UPON A CERTAIN ITEM. THESE": PRINT "NUMBERS IN THEMSELVES ARE IRRELEVENT,": PRINT "IT IS THE RELATIONSHIP TO THE OTHERS": PRINT "THAT IS IMPORTANT."
10060 PRINT : PRINT " FOR EXAMPLE: IF YOU HAD THREE CHOICES": PRINT "AND YOU ASSIGN WEIGHT VALUES OF 20, 30": PRINT "AND 40; IT WOULD BE THE SAME AS THOUGH": PRINT "YOU ASSIGNED 2,3 AND 4 OR 24,36, AND": PRINT "48."
10070 PRINT : PRINT " THE WEIGHTING VALUES WILL DETERMINE": PRINT "THE RESULTS OF YOUR DECISION SO IT IS": PRINT "VERY IMPORTANT THAT YOU THINK ABOUT": PRINT "THE RELATIVE VALUES VERY CAREFULLY."
10080 GOSUB 60
10090 PRINT " WHEN THE PROGRAM BEGINS YOU WILL BE": PRINT "ASKED FOR A TITLE TO BE PLACED ABOVE": PRINT "THE RESULTS. THIS SHOULD DESCRIBE THE": PRINT "CHOICE."
10100 PRINT : PRINT " THEN A SERIES OF QUESTIONS WILL ASK": PRINT "HOW MANY CHOICES AND CRITERIA YOU": PRINT "WANT TO USE. YOU WILL ALSO BE ASKED": PRINT "TO GIVE THEM A NAME SO YOU CAN REMEMBER": PRINT "THEM EASIER."
10110 GOSUB 60
10120 PRINT " NEXT, EACH CRITERIA WILL BE PRESENTED": PRINT "AND YOU WILL BE ASKED TO GIVE EACH A": PRINT "WEIGHTING VALUE TO SHOW HOW IMPORTANT": PRINT "EACH ONE IS TO YOU."
10130 PRINT : PRINT " THEN THE CRITERIA WILL BE PRESENTED": PRINT "AGAIN, BUT THIS TIME YOU WILL BE": PRINT "JUDGING EACH OF THE CHOICES ACCORDING": PRINT "TO THE CRITERIA PRESENTED."
10140 PRINT : PRINT " THE PROGRAM WILL THEN CALCULATE YOUR": PRINT "BEST CHOICE BASED UPON THE ANSWERS": PRINT "YOU GAVE. YOU WILL BE ASKED IF YOU": PRINT "WANT A HARD COPY OF THE RESULTS."
10150 GOSUB 60
10160 PRINT " AT THIS TIME A LIST OF THE RESULTS": PRINT "WILL PRINT OUT ON THE SCREEN OR": PRINT "PRINTER IF YOU SAID YES TO THE LAST": PRINT "QUESTION."
10170 PRINT : PRINT "THE PRINTER IS SETUP TO SLOT 1 IN LINE": PRINT "19, WHICH CAN BE CHANGED TO SUIT YOUR": PRINT "NEEDS."